package com.snailct.bpp.router.datachange;

import java.util.List;

/**
 * Created by huangxa on 2016/6/17.
 */
public class MessageOperation {
    private String inXmlDescFileName;
    private List<MessageNode> messageNodeArray;
    public void setInXmlDescFileName(String inXmlDescFileName) {
        this.inXmlDescFileName = inXmlDescFileName;
    }

    public void genInMessageNodeArray() {
        XMLFileOperation xmlFileOperation = new XMLFileOperation();
        xmlFileOperation.setXmlFileName(inXmlDescFileName);
        xmlFileOperation.setMessageDirection("in");
        messageNodeArray = xmlFileOperation.getAllElement4Web();
    }

    public List<MessageNode> getMessageNodeArray() {
        return messageNodeArray;
    }
}
